toctoc
Similar to MATLAB's toc(), but extended to save "more states"
Contents
Syntax
seconds = toctoc(id)
Description
toctoc(id) returns the time taken (in seconds) since the call to tictic(id) with the same id. Each id generates independent results, e.g. toctoc(3) will not be influenced by the start of tictic(2).
Note:
Do not use too large values for id, as they will take up memory. Also make sure that you do not mix up those tictic ids. Note that toctoc() does not generate a screen output like toc() does.
Example
id = 7;
tictic(id);
% do something...
timeTaken = toctoc(id);
See also
Signature
- Author: Linus Atorf (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2008, RWTH Aachen University